<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateReTagTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('re_tag', function (Blueprint $table) {
            $table->increments('reg_id');
            $table->string('reg_name',20)->comment('标签名称');
            $table->integer('reg_status')->comment('标签状态');
            $table->string('reg_content',100)->comment('标签主体');
            $table->tinyInteger('reg_type')->comment('标签类型,1为文章,2为标签,3为亮点');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('re_tag');
    }
}
